Lab 04 - Camera: Cones detection

Robotics II

Poznan University of Technology, Institute of Robotics and Machine Intelligence

Laboratory 4: Cones detection and classification using Camera sensor

Back to the course table of contents

In this course, you will train an object detection and classification algorithm. Your object will be a cone.

Part I - train the cone detector

First, follow the interactive tutorial. It uses the YOLOv8 model for object detection and the BME Formula Racing Team cones dataset. Remember to save exported onnx model from the final step. At the end, you must have: best.onnx

Part II - build the inference pipeline

In this part, the trained model is integrated into a ROS 2-based perception pipeline.

First, the exported ONNX model should be copied into the ROS 2 workspace, for example:

/ros2_ws/src/rob2_pkg/onnx/best.onnx

After that, you should review the implementation of the detection node responsible for:

The camera topic used in this laboratory is:

/fsds/cam1/image_color

Preprocessing

The neural network requires input data in a specific format. You must ensure that the preprocessing stage performs the following steps:

Postprocessing

After running inference, the model outputs must be interpreted. This includes:

The final step is to visualize detections by drawing bounding boxes and labels on the image.

As a result: - .txt file with short question answers, - upload your node responsible for inference, - upload screenshot from the rviz2 tool to the eKursy platform.